﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __MACRO_MACRO_H__
#define __MACRO_MACRO_H__

#include "../impl/mgr.h"

namespace xos_package
{

// 
// 日志宏定义
// 
#define PKGE_LOG            "PKGE"
#define LOG1( fmt, ... )    do{ mgr::log()->log_info( PKGE_LOG, 1, __FILE__, __LINE__, fmt, ##__VA_ARGS__ ); } while(0)
#define LOG2( fmt, ... )    do{ mgr::log()->log_info( PKGE_LOG, 2, __FILE__, __LINE__, fmt, ##__VA_ARGS__ ); } while(0)
#define LOG3( fmt, ... )    do{ mgr::log()->log_info( PKGE_LOG, 3, __FILE__, __LINE__, fmt, ##__VA_ARGS__ ); } while(0)
#define LOG4( fmt, ... )    do{ mgr::log()->log_info( PKGE_LOG, 4, __FILE__, __LINE__, fmt, ##__VA_ARGS__ ); } while(0)
//#define LOG1( fmt, ... )  do{} while(0)
//#define LOG2( fmt, ... )  do{} while(0)
//#define LOG3( fmt, ... )  do{} while(0)
//#define LOG4( fmt, ... )  do{} while(0)

} // xos_package

#endif // __MACRO_MACRO_H__
